<!DOCTYPE html>
<%@page import="ihotel.Reserva" %>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'reserva.label', default: 'Reserva')}" />
		<title><g:message code="default.create.label" args="[entityName]" /></title>
		<style type="text/css" media="screen">
			h2 {
				margin: 0.8em 1em 0.3em;
				padding: 0 0.25em;
				margin-top: 1em;
				margin-bottom: 0.3em;
				font-size: 1em;
				
			}
			p {
				line-height: 1.5;
				margin: 0.25em 0;
			}	        
		</style>		
	</head>
	<body>
		<a href="#create-reserva" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
			</ul>
		</div>
		<div id="create-reserva" class="content scaffold-create" role="main">
			&nbsp;
			<h2>Por favor, conclua o preenchimento e confirme para efetuar sua reserva.</h2>
			<h1><g:message code="Efetuar Reserva"/></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<g:hasErrors bean="${reservaInstance}">
			<ul class="errors" role="alert">
				<g:eachError bean="${reservaInstance}" var="error">
				<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
				</g:eachError>
			</ul>
			</g:hasErrors>
			<g:form action="save">
				<fieldset class="form">
					<g:render template="form"/>
				</fieldset>
				<fieldset class="buttons">
					<g:submitButton name="confirmarReserva" class="save" value="Confirmar" />
					<g:link controller="HomePage">Cancelar</g:link>
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
